import os

class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'a-hard-to-guess-string'
    SQLALCHEMY_DATABASE_URI = 'mysql+mysqlconnector://root:root@localhost/xm'
    SQLALCHEMY_TRACK_MODIFICATIONS = False

    # 定义所有分类及其真实页面源
    CATEGORIES = {
        '综合': 'https://www.oschina.net/news/rss', # 综合新闻使用RSS，保持不变
        '移动开发': 'https://www.oschina.net/blog/widgets/_blog_list?classification=13',
        '数据库': 'https://www.oschina.net/blog/widgets/_blog_list?classification=4',
        '云计算': 'https://www.oschina.net/blog/widgets/_blog_list?classification=14',
        '人工智能': 'https://www.oschina.net/blog/widgets/_blog_list?classification=16',
    }
